package dfbz.homework1;

public class Test02 {
    public static void main(String[] args) {
        int a=getSum(100);
        System.out.println(a);
    }
    public static int getSum(int n){
        int sum=0;
        for (int i = 0; i < n; i++) {
            sum+=i;
        }
        return sum;
    }
}
